<div class="container-fluid">
	<div id="pad-wrapper">
		<!-- products table-->
		<!-- the script for the toggle all checkboxes from header is located in js/theme.js -->
		<div class="table-wrapper products-table section">
			<div class="row-fluid head">
				<div class="span12">
					<h4>社团申请列表</h4>
				</div>
			</div>
			
			
			<form action="" method="get" name="search">
			<div class="row-fluid filter-block">
				<div class="pull-left">
					<a class="btn-flat success" onclick="document.forms['batch'].submit();">批量通过</a>
				</div>
				<div class="pull-right">
					社团名称：
					<input type="text" class="search" name="activity_name" value=""/> 
					<a class="btn-flat success" onclick="document.forms['search'].submit();">搜索</a>
				</div>
			</div>
			</form>
			
			<div class="row-fluid">
				<table class="table table-hover">
					<thead>
						<tr>
							<th class="span3"><input type="checkbox" /> 社团名称</th>
							<th class="span3"><span class="line"></span>兴趣</th>
							<th class="span3"><span class="line"></span>申请人</th>
							<th class="span2"><span class="line"></span>申请状态</th>
							<th class="span2"><span class="line"></span>自我介绍</th>
						</tr>
					</thead>
					<form action="/organization-apply/batch" method="post" name="batch">
					<tbody>
						<?php if($list):?>
						<?php foreach ($list as $item):?>
						<!-- row -->
						<tr class="first">
							<td>
								 <?php if($item['status'] == 1):?><input type="checkbox" name="apply_ids[]" value="<?php echo $item['apply_id']?>"/><?php endif;?>
								 <?php echo $item['organization_name']?></td>
							<td class="description"><?php echo $item['interest']?></td>
							<td class="description"><?php echo @$item['user_name']?></td>
							<td class="description"><?php echo @$item['user_status_name']?></td>
							<td class="description"><?php echo $item['apply_description']?></td>
						</tr>
						<?php endforeach;?>
						<?php endif;?>
					</tbody>
					</form>
				</table>
			</div>
		</div>
		<!-- end products table -->
	</div>
	<div class="pagination pull-right">
	  <?php echo $pagination;?>
	</div>
</div>


